<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 方式一   直接创建


        var user = {
            name:'张三',
            age:24
        }

        // 方式二  new Object 

        var obj = new Object(); //创建出一个 空对象

    </script>
</body>
</html>